package com.lee.lease.web.app.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lee.lease.model.entity.RoomInfo;
import com.lee.lease.web.app.vo.graph.GraphVo;
import com.lee.lease.web.app.vo.room.RoomDetailVo;
import com.lee.lease.web.app.vo.room.RoomItemVo;
import com.lee.lease.web.app.vo.room.RoomQueryVo;
import org.jacoco.agent.rt.internal_035b120.core.internal.flow.LabelInfo;

import java.math.BigDecimal;
import java.util.List;

/**
* @author liubo
* @description 针对表【room_info(房间信息表)】的数据库操作Mapper
* @createDate 2023-07-26 11:12:39
* @Entity com.atguigu.lease.model.entity.RoomInfo
*/
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {


    double findMinRent(Long id);

    String findRoomNumber(Long roomId);
    List<GraphVo> findGraphByRoomId(Long id);
    List<LabelInfo> findLabelInfoList(Long id);

    IPage<RoomItemVo> findRoomItem(IPage<RoomItemVo> page, RoomQueryVo queryVo);

    /**
     *
     * @param page
     * @param id 公寓id
     * @return
     */
    IPage<RoomItemVo> findRoomItemByApartmentId(IPage<RoomItemVo> page, Integer id);

    /**
     *
     * @param id 房间id
     * @return
     */
    RoomDetailVo selectRoomById(Integer id);

    BigDecimal selectMinRent(Integer id);

    RoomInfo selectRoomById1(Integer id);
}